package com.wanmei.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Date;
import java.util.List;

public class User {
    private Integer uid;

    private Integer rid;

    private String tel;

    private String email;

    private String username;

    @JsonIgnore
    private String password;

    private String relname;

    private String keyidentity;

    private Integer istate;

    private String adduser;

    private String addtime;

    private String modifyuser;

    private String modifytime;

    private Integer islock;

    private List<Address> addressList;

    public List<Address> getAddressList() {
        return addressList;
    }

    public void setAddressList(List<Address> addressList) {
        this.addressList = addressList;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getRelname() {
        return relname;
    }

    public void setRelname(String relname) {
        this.relname = relname == null ? null : relname.trim();
    }

    public String getKeyidentity() {
        return keyidentity;
    }

    public void setKeyidentity(String keyidentity) {
        this.keyidentity = keyidentity == null ? null : keyidentity.trim();
    }

    public Integer getIstate() {
        return istate;
    }

    public void setIstate(Integer istate) {
        this.istate = istate;
    }

    public String getAdduser() {
        return adduser;
    }

    public void setAdduser(String adduser) {
        this.adduser = adduser == null ? null : adduser.trim();
    }

    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    public String getModifyuser() {
        return modifyuser;
    }

    public void setModifyuser(String modifyuser) {
        this.modifyuser = modifyuser == null ? null : modifyuser.trim();
    }

    public String getModifytime() {
        return modifytime;
    }

    public void setModifytime(String modifytime) {
        this.modifytime = modifytime;
    }

    public Integer getIslock() {
        return islock;
    }

    public void setIslock(Integer islock) {
        this.islock = islock;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", rid=" + rid +
                ", tel='" + tel + '\'' +
                ", email='" + email + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", relname='" + relname + '\'' +
                ", keyidentity='" + keyidentity + '\'' +
                ", istate=" + istate +
                ", adduser='" + adduser + '\'' +
                ", addtime='" + addtime + '\'' +
                ", modifyuser='" + modifyuser + '\'' +
                ", modifytime='" + modifytime + '\'' +
                ", islock=" + islock +
                ", addressList=" + addressList +
                '}';
    }
}